<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
       
    <style>
        body {
            perspective: 400px;
        }
        img {
            margin: auto;
            animation: move 1s linear infinite;
            
        }
        @keyframes move {
            0% {

            }
            100% {
                transform: rotateY(360deg);
            }
        }
    </style>
</head>
<body>
    <img src="pig.jpg">
</body>
</html>